from random import randint
import pygal


class Die():
	"""骰子类"""
	
	def __init__(self, num_sides=6):
		self.num_sides = num_sides
	
	def roll(self):
		return randint(1, self.num_sides)


line = pygal.Bar()
